﻿using Somnus.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace Hosting
{
    class Program
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(WirelessAPService)))
            {
                host.Open();
                Console.WriteLine("Service Address:");
                foreach (var endpoint in host.Description.Endpoints)
                {
                    Console.WriteLine(endpoint.Address.ToString());
                }
                Console.WriteLine("Service Started,Press any key to stop service...");
                Console.ReadKey();
                host.Close();
            }
        }
    }
}
